public class Cat extends Animal {
    private String name;

    public Cat(String name) {
        this.name = name;
    }

    public void shout() {
        System.out.println("喵喵喵~~~");
    }

    @Override
    public void eat(Food food) {
        System.out.println(this.name + "正在吃这香喷喷的" + food.getName());
    }
}
